<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "error_log".
 *
 * @property integer $error_log_id
 * @property string $error_name
 * @property string $error_class
 * @property string $error_type
 * @property string $error_content
 * @property string $create_time
 */
class ErrorLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'error_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['error_name', 'error_type', 'error_content', 'create_time'], 'required'],
            [['error_type', 'error_content'], 'string'],
            [['create_time'], 'safe'],
            [['error_name', 'error_class'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'error_log_id' => '错误信息',
            'error_name' => '错误名',
            'error_class' => '错误类',
            'error_type' => '错误类型',
            'error_content' => '错误内容',
            'create_time' => '创建时间',
        ];
    }
}
